package com.example.demo3;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class demo33MainActivity extends AppCompatActivity {

    private TextView tttt1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo33_main);

        tttt1 = (TextView)findViewById(R.id.ttt1);
        Intent intent = getIntent();
        tttt1.setText("学号:"+intent.getStringExtra("id").toString());
        Toast.makeText(this, "欢迎"+intent.getStringExtra("id").toString()+"同学！", Toast.LENGTH_SHORT).show();

    }
}
